
PWD=$(shell pwd )

LIBNAME=$(shell basename ${PWD} )
PROJPATH=$(shell dirname ${PWD} )

CFLAGS+=-I${PROJPATH}

all: clean
	@rm -f *.o
	@gcc ${CFLAGS} -c *.c 
	ar -rcs  lib${LIBNAME}.a *.o

clean:
	@rm -f *.o
	@rm -f *.a

